function submitForm(event) {
    event.preventDefault();
    var form = event.target;
    var formData = new FormData(form);

    var xhr1 = new XMLHttpRequest();
    xhr1.open('GET', form.action + '?' + new URLSearchParams(formData).toString());
    xhr1.send();

    var xhr2 = new XMLHttpRequest();
    xhr2.open('POST', form.action);
    xhr2.send(formData);
}